<h1><?php echo $this->escape($this->title); ?></h1>

<table>
<tr>
<?php foreach($this->config_rows as $config_row) : ?>
	<th><?php echo $this->escape($config_row['heading']);?></th>
<?php endforeach; ?>
</tr>
<?php foreach($this->objects as $object) : ?>
<tr>
<?php foreach($this->config_rows as $config_row) : ?>
<th><?php 
switch ($config_row['field_type']) {
case 'none':
	break;
case 'data':
	echo $this->escape($object->$config_row['data_field']);
	break;
case 'link':
	echo $this->escape($object->$config_row['data_field']);
	break;
}
?></th>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</table>
<div class="navigation" style="height: 190%">
<?php echo $this->VeneerPageNav(1,2,3); ?>
<p></p>
		</div>

<?php
/*
	<td><?php echo $this->escape($object->title);?></td>
	<td><?php echo $this->escape($object->artist);?></td>
	<td>
		<a href="<?php echo $this->baseUrl ?>/index/edit/id/<?php echo $object->id;?>">Edit</a>
		<a href="<?php echo $this->baseUrl ?>/index/delete/id/<?php echo $object->id;?>">Delete</a>
	</td>
*/
